/**
 * 
 */
package clids.ex2.filters;

import java.io.File;

/**
 * @author Li0r
 * 
 */

public class PrefixFilter extends AbstractFilter {

	public PrefixFilter(String params) {
		super(params);

	}

	@Override
	public boolean isValid(String file) {
		File fileInfo = new File(file);
		return (fileInfo.getName().startsWith(parameters[0]));
	}

}